<?php
global $cv_option;
get_header(); // Loads the header.php template. ?>		
		
		<div id="main" class="<?php echo $cv_option['blog_layout']; ?> clearfix">		
			
			<div class="center">			
				<div id="content" class="clearfix">
					<div class="home-blog <?php if($cv_option['sc_disable_socials'] == true) echo 'disable-socials';?>">
						<?php if ( have_posts() ) : ?>
							<?php while ( have_posts() ) : the_post(); ?>					

							   <?php get_template_part('entry'); ?>
								
							<?php endwhile; ?>	
						
							<div id="nav-below" class="page_navi">						 
								<?php cv_pagenavi(); ?> 
							</div><!-- #nav-below -->

						<?php else : ?>
							<?php get_template_part('no-results'); ?>				
						<?php endif; ?>
					</div>	
				</div> <!-- #content -->		
			
				<?php get_sidebar( 'primary' );  ?>			
			
			</div><!-- .center -->
			
		</div><!-- #main -->		
	
	
<?php get_footer(); // Loads the footer.php template. ?>		